<?php include $this->admin_tpl('header','admin');?>
	<body>
		<div class="fixed-nav layout">
			<ul>
				<li class="first"><?php echo $payment['pay_name']?>设置</li>
				<li class="spacer-gray"></li>
			</ul>
			<div class="hr-gray"></div>
		</div>
		<div class="content padding-big have-fixed-nav">
			<form name="form" action="<?php echo $_SERVER['REQUEST_URI']?>" method="post" data-layout="default" data-validate='true'>
			<div class="form-box clearfix">
				<?php echo form::input('radio', 'enabled', $payment['enabled'], '是否启用', '设置是否开启本支付方式', array('items' => array(1=>'开启',0=>'关闭'), 'colspan' => 2)); ?>
				<?php echo form::input('text', 'pay_name', $payment['pay_name'], '支付名称：', '设置支付名称，主要用于后台支付名称显示，如无特殊需求，不建议修改', array('datatype' => "*")); ?>
				<?php echo form::input('text', 'config[account]', $payment['config']['account'], '支付宝账户：', '支付宝收款账户', array('datatype' => "*")); ?>
				<?php echo form::input('text', 'config[partner]', $payment['config']['partner'], '合作者身份(parterID)：', '支付宝提供的合作者身份编码(以2088开头)', array('datatype' => "*")); ?>
				<?php echo form::input('text', 'config[key]', $payment['config']['key'], '交易安全校验码(key)：', '支付宝提供的交易安全校验码', array('datatype' => "*")); ?>
				<?php echo form::input('textarea', 'pay_desc', $payment['pay_desc'], '支付方式描述：','支付方式介绍及描述'); ?>
			</div>
			<div class="padding">
				<input type="hidden" name="config[banks]" value="ABC,ICBCB2C,BOCBTC,COMM,POSTGC,CMB,SPDB,BJBANK,BJRCB,CEB-DEBIT,CITIC,CMBC,FDB,GDB,HZCBB2C,NBBANK,SHBANK,SHRCB,SPABANK,WZCBB2C-DEBIT" />
				<input type="hidden" name="pay_code" id="pay_code" value="<?php echo $payment['pay_code']?>" />
				<input type="submit" class="button bg-main" value="保存">
				<a href="<?php echo(url('setting'))?>" class="button margin-left bg-gray">返回</a>
			</div>
			</form>
		</div>
		<script type="text/javascript">
			$(function(){		
				$("[name=form]").Validform();
			})
		</script>
	</body>
</html>
